import request from '@/utils/request'


export function getPageData(params) {
  return request({
    url: '/api/assess/list',
    method: 'post',
    data: params
  })
}

export function addData(params) {
  return request({
    url: '/api/assess/add',
    method: 'post',
    data: params
  })
}

export function updateData(params) {
  return request({
    url: '/api/assess/update',
    method: 'post',
    data: params
  })
}

export function deleteData(id) {
  return request({
    url: '/api/assess/'+id,
    method: 'delete'
  })
}

export function getScoreData(params) {
  return request({
    url: '/api/assess/score',
    method: 'post',
    data: params
  })
}

export function getPhysicalData(params) {
  return request({
    url: '/api/physical/list',
    method: 'post',
    data: params
  })
}

export function getPharmacyData(params) {
  return request({
    url: '/api/pharmacy/list',
    method: 'post',
    data: params
  })
}

export function getMedicalData(params) {
  return request({
    url: '/api/medical/list',
    method: 'post',
    data: params
  })
}
